package com.shop.web.shiro.generator;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

import java.io.Serializable;

public class ShiroIdGenerator implements SessionIdGenerator {
    @Override
    public Serializable generateId(Session session) {
        return RandomStringUtils.randomAlphanumeric(64);
    }
}
